package com.bw.a2207a.db

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy.REPLACE
import androidx.room.Query
import com.bw.a2207a.bean.StudentInfoBean

/**
 *
 * @ClassName: StudentDao
 * @Description: java类作用描述
 * @Author: zhangyanchao
 * @CreateDate: 2024/10/23 11:11 AM
 * @Version: 1.0
 */
@Dao
interface StudentDao {
    @Insert(onConflict = REPLACE)
    fun insertStudent(studentInfoBean: StudentInfoBean)

    @Query("select * from student_info")
    fun getStudents(): List<StudentInfoBean>

}